package com.lxj.service.impl;

import com.lxj.domain.University;
import com.lxj.mapper.UniversityMapper;
import com.lxj.service.UniversityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UniversityServiceImpl implements UniversityService {
    @Autowired
    private UniversityMapper universityMapper;
    @Override
    public List<University> selectAll(University university) {
        return universityMapper.selectAll(university);
    }

    @Override
    public int getNumber() {
        return universityMapper.getNumber();
    }

    @Override
    public int delete(Integer[] id) {
        return universityMapper.delete(id);
    }

    @Override
    public int add(University university) {
        return universityMapper.add(university);
    }

    @Override
    public University findById(Integer id) {
        return universityMapper.findById(id);
    }

    @Override
    public int edit(University university) {
        return universityMapper.edit(university);
    }
}
